﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService
{
    public interface IMaterialGroupService
    {
        /// <summary>
        /// 添加物料组
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        bool AddMaterialGroup(MaterialGroup m);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="mid"></param>
        /// <returns></returns>
        bool DelMaterialGroup(long mid);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        bool UpdMaterialGroup(MaterialGroup m);

        /// <summary>
        /// 查看
        /// </summary>
        /// <param name="mid"></param>
        /// <returns></returns>
        MaterialGroup? GetMaterialGroupById(long mid);

        /// <summary>
        /// 显示列表
        /// </summary>
        /// <param name="manme"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<MaterialGroup> GetMaterialGroupList(string? manme, int pageIndex, int pageSize, out int totalCount);
    }
}
